$(function(){
	var page=navTab.getCurrentPanel();
	var pageHeader=$(".pageHeader",page);
	var panel=$("#panel",page);
	var orgLayoutH=panel.attr("layoutH");
	var speed="normal";
    $("#hideQueryBtn",page).toggle(
		  
		function(){
			pageHeader.hide(speed);
			
			if(panel.length!=0)
			{
				panel.attr("layoutH","0");
				panel.layoutH();
			}
			var showText=$(this).attr("showText");
			$(this).html(showText+"<span></span>");
			$(this).find("span").addClass("show");
		},
		function(){
			pageHeader.show(speed);
			
			if(panel.length!=0)
			{
				panel.attr("layoutH",orgLayoutH);
				panel.layoutH();
			}
			var hideText=$(this).attr("hideText");
			$(this).html(hideText+"<span></span>");
			$(this).find("span").removeClass("show");
		}
	   );
	

});
